#include "ramen.h"
#include <bits/stdc++.h>

#define pb push_back
#define rep(i, x, y) for(int i = (x); i <= (y); i++)
#define per(i, x, y) for(int i = (x); i >= (y); i--)

using namespace std;

using vec = vector < int > ;

void Ramen(int n) {
	vec S,T;
	rep(i, 1, n - 1) {
		if(Compare(i,i - 1) == 1) T.pb(i),S.pb(i - 1);
		else S.pb(i),T.pb(i - 1);
		i++;
	}
	if(n & 1) T.pb(n - 1),S.pb(n - 1);
	int mxid = -1,mnid = -1;
	for(auto x : S) if(mnid == -1 || Compare(x,mnid) == -1) mnid = x;
	for(auto x : T) if(mxid == -1 || Compare(x,mxid) == 1) mxid = x;
	Answer(mnid,mxid); return;
}
